﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tanmia.Warehouse.Core;
using FluentNHibernate.Mapping;

namespace Tanmia.Warehouse.NHibernateRepository.Mapping
{
    public class BranchMap : ClassMap<Branch>
    {
        public BranchMap()
        {
            Table("Branch");
            
            Id(x => x.BranchID).GeneratedBy.Identity();
            Map(x => x.Name).Not.Nullable();
        }
    }
}
